<!DOCTYPE html>
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ include file="/page/core/common/commonvariable.jsp"%>
<html >
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<jsp:include page="<%=commonLib%>" />
<title>角色管理</title>
<link rel="stylesheet" type="text/css" href="<%=pagePath%>/thirdparty/zTree_v3-3.5.22/zTreeStyle/zTreeStyle.css" />
</head>
<body ng-app="sysRoleModule" ng-controller="sysRoleController">	
<jsp:include page="<%=widgetHeader%>"/>

<div class="lay-wrap">
	<div class="lay-left col-xs-1">
			<jsp:include page="<%=widgetLeftBar%>"/>
	</div>
	<div>

</div>

<jsp:include page="<%=widgetAnRightBar%>">
	 <jsp:param name="module1" value="/WEB-INF/views/sys/role/sys_role_edit.jsp"/>
</jsp:include>

<div class="lay-main col-xs-11" >
<div class="panel panel-default">
	<div class="panel-heading">
		<div class="row">
       		<div class="col-xs-10">
       		    <div class="form-group com-title" >角色管理</div>
       		</div>
       	</div>
     </div>
	<div class="panel-heading">
		<div class="row">
				<div class="col-xs-12">
					<form class="form-inline" role="form"   method="post" >
						<div class="form-group">
							<input type="text" class="form-control" ng-model="queryForm.srolename"  placeholder="角色名"  />
						</div>
						<a href="javascript:void(0);" ng-click="doquery();" class="btn btn-default com-margin-left30">查询</a>
						<a href="javascript:void(0);" ng-click="goAdd();" class="btn btn-default com-margin-left30">新增</a>
					</form>
				</div>
		</div>
	</div>
	<div class="panel-body">
		<div class="row">
			<div class="col-md-12">
				<table class="table">
					<thead>
						<tr>
							<th style="width: 4%">序号</th>
							<th style="width: 20%">角色名</th>
							<th style="width: 40%">备注</th>
							<th style="width: 20%">操作</th>
						</tr>
					</thead>
					<tbody>
						<tr ng-repeat="o in resultList">
							<td ng-bind="$index + 1"></td>
							<td ng-bind="o.srolename"></td>
							<td ng-bind="o.sremark"></td>
							<td>
								<a href="javascript:void(0)" title="编辑" ng-click="goModify($index);" class="com-btn-icon glyphicon glyphicon-edit"></a>
								<a href="javascript:void(0)" title="删除" ng-click="showDelWin($index);" class="com-btn-icon glyphicon glyphicon-remove"></a>
								<a href="javascript:void(0)" title="授权资源" ng-click="goResourceModify($index);" class="com-btn-icon glyphicon">授权资源</a>
							</td>
						</tr>
					</tbody>
				</table>
				<form role="form" id="sysRoleQueryForm" method="post" action="<%=actionPath%>/sys/role/list">
					<jsp:include page="<%=widgetAnPagition%>"></jsp:include>
				</form>
			</div>
		</div>
	</div>
	</div>
</div>
<jsp:include page="<%=widgetFooter%>"/>
<!-- content end -->
</div>

<!-- 删除固定资产确认操作Modal -->
<div class="modal fade" id="confirm_del_asset_div" tabindex="-1" role="dialog">
  <div class="modal-dialog">
    <div class="modal-content">
      <div class="modal-header">
        <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
        <h4 class="modal-title" id="confirm_del_data_label">提示</h4>
      </div>
      <div class="modal-body">
          <span>您确定删除此数据吗？</span>
      </div>
      <div class="modal-footer">
        <button type="button" class="btn btn-default" data-dismiss="modal">取消</button>
        <button type="button" data-dismiss="modal" class="btn btn-primary" ng-click="doDelAsset()">继续</button>
      </div>
    </div>
  </div>
</div>


<div class="modal fade" id="confirm_addMenu_data_div" tabindex="-1" role="dialog">
  <div class="modal-dialog"  style=" width:300px;margin: 100px auto;">
    <div class="modal-content">
      <div class="modal-header">
        <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
        <h4 class="modal-title" id="confirm_del_data_label">授权资源 - {{resourceTitle}}</h4>
      </div>
      <div class="modal-body" style="max-height: 300px;overflow-x: hidden;">
         <div class="form-group  col-sm-12 ">
		<div >
			<input type="hidden"  ng-model="rolePurview.roleid" />
			<ul id="tree" class="ztree"></ul>
		</div>
	   </div>
      </div>
      <div class="modal-footer">
        <button type="button" class="btn btn-default" data-dismiss="modal">取消</button>
        <button type="button" class="btn btn-primary" ng-click="saveRolePurviews();">确定</button>
      </div>
    </div>
  </div>
</div>

<script type="text/javascript" src="<%=pagePath%>/js/moudles/sys/role/sys_role.js"></script>
<script type="text/javascript" src="<%=pagePath%>/js/common/aninnerpagination.js"></script>
<script type="text/javascript" src="<%=pagePath%>/thirdparty/zTree_v3-3.5.22/jquery.ztree.core.min.js"></script>
<script type="text/javascript" src="<%=pagePath%>/thirdparty/zTree_v3-3.5.22/jquery.ztree.excheck.min.js"></script>
</body>
</html>

